//
//  YWRollView.h
//  GoFarm-V1.2.0
//
//  Created by David Yu on 30/3/16.
//  Copyright © 2016年 yanwei. All rights reserved.
//

#import <UIKit/UIKit.h>

@class YWRollView;
@interface YWRollView : UIView

@property (nonatomic, strong) NSArray *newsItems;                  //设置数据源
@property (nonatomic, strong) UIColor *pageNormalColor;             //page未选中时的颜色
@property (nonatomic, strong) UIColor *pageSelectColor;             //page选中时的颜色
@property (nonatomic, assign) NSInteger timerInterval;              //定时器时间间隔
@property (nonatomic, assign) BOOL isHavePageVC;                    //是否需要page
@property (nonatomic, assign) BOOL isCycleRun;                      //是否需要循环滚动

@property (nonatomic, copy) void(^onClickItemBlock)(NSInteger index);
- (void)startRun;           //启动定时器

@end
